package com.tjbank.cssys.mybatis.sqlbuilder;

import com.tansun.web.framework.dao.SQLBulider;
import java.io.Serializable;

/**
 * IamRelationshipSqlBuilder
 * 
 * @author PG(Auto Generator)
 * @version V2.0
 */
public class IamRelationshipSqlBuilder extends SQLBulider<IamRelationshipSqlBuilder> implements Serializable {
    private static final long serialVersionUID = -161123581321345589L;

    public IamRelationshipSqlBuilder() {
        _id = this.toString().split("@")[1];
    }

    public IamRelationshipSqlBuilder andIdEqualTo(String value) {
        return addAndCriterion("ID", Operator.EqualTo, value);
    }

    public IamRelationshipSqlBuilder andIdNotEqualTo(String value) {
        return addAndCriterion("ID", Operator.NotEqualTo, value);
    }

    public IamRelationshipSqlBuilder andIdGreaterThan(String value) {
        return addAndCriterion("ID", Operator.GreaterThan, value);
    }

    public IamRelationshipSqlBuilder andIdGreaterThanOrEqualTo(String value) {
        return addAndCriterion("ID", Operator.GreaterThanOrEqualTo, value);
    }

    public IamRelationshipSqlBuilder andIdLessThan(String value) {
        return addAndCriterion("ID", Operator.LessThan, value);
    }

    public IamRelationshipSqlBuilder andIdLessThanOrEqualTo(String value) {
        return addAndCriterion("ID", Operator.LessThanOrEqualTo, value);
    }

    public IamRelationshipSqlBuilder andIdIsNull() {
        return addAndCriterion("ID", Operator.IsNull, null);
    }

    public IamRelationshipSqlBuilder andIdIsNotNull() {
        return addAndCriterion("ID", Operator.IsNotNull, null);
    }

    public IamRelationshipSqlBuilder andIdLikeBoth(String value) {
        return addAndCriterion("ID", Operator.Like, likeMark + value + likeMark);
    }

    public IamRelationshipSqlBuilder andIdLikeLeft(String value) {
        return addAndCriterion("ID", Operator.Like, likeMark + value);
    }

    public IamRelationshipSqlBuilder andIdLikeRigth(String value) {
        return addAndCriterion("ID", Operator.Like, value + likeMark);
    }

    public IamRelationshipSqlBuilder andIdNotLikeBoth(String value) {
        return addAndCriterion("ID", Operator.NotLike, likeMark + value + likeMark);
    }

    public IamRelationshipSqlBuilder andIdNotLikeLeft(String value) {
        return addAndCriterion("ID", Operator.NotLike, likeMark + value);
    }

    public IamRelationshipSqlBuilder andIdNotLikeRigth(String value) {
        return addAndCriterion("ID", Operator.NotLike, value + likeMark);
    }

    public IamRelationshipSqlBuilder orIdEqualTo(String value) {
        return addOrCriterion("ID", Operator.EqualTo, value);
    }

    public IamRelationshipSqlBuilder orIdNotEqualTo(String value) {
        return addOrCriterion("ID", Operator.NotEqualTo, value);
    }

    public IamRelationshipSqlBuilder orIdGreaterThan(String value) {
        return addOrCriterion("ID", Operator.GreaterThan, value);
    }

    public IamRelationshipSqlBuilder orIdGreaterThanOrEqualTo(String value) {
        return addOrCriterion("ID", Operator.GreaterThanOrEqualTo, value);
    }

    public IamRelationshipSqlBuilder orIdLessThan(String value) {
        return addOrCriterion("ID", Operator.LessThan, value);
    }

    public IamRelationshipSqlBuilder orIdLessThanOrEqualTo(String value) {
        return addOrCriterion("ID", Operator.LessThanOrEqualTo, value);
    }

    public IamRelationshipSqlBuilder orIdIsNull() {
        return addOrCriterion("ID", Operator.IsNull, null);
    }

    public IamRelationshipSqlBuilder orIdIsNotNull() {
        return addOrCriterion("ID", Operator.IsNotNull, null);
    }

    public IamRelationshipSqlBuilder orIdLikeBoth(String value) {
        return addOrCriterion("ID", Operator.Like, likeMark + value + likeMark);
    }

    public IamRelationshipSqlBuilder orIdLikeLeft(String value) {
        return addOrCriterion("ID", Operator.Like, likeMark + value);
    }

    public IamRelationshipSqlBuilder orIdLikeRigth(String value) {
        return addOrCriterion("ID", Operator.Like, value + likeMark);
    }

    public IamRelationshipSqlBuilder orIdNotLikeBoth(String value) {
        return addOrCriterion("ID", Operator.NotLike, likeMark + value + likeMark);
    }

    public IamRelationshipSqlBuilder orIdNotLikeLeft(String value) {
        return addOrCriterion("ID", Operator.NotLike, likeMark + value);
    }

    public IamRelationshipSqlBuilder orIdNotLikeRigth(String value) {
        return addOrCriterion("ID", Operator.NotLike, value + likeMark);
    }

    public IamRelationshipSqlBuilder orderById(boolean isDesc) {
        return addOrderBy("ID", isDesc);
    }

    public IamRelationshipSqlBuilder andEntity1TypeEqualTo(String value) {
        return addAndCriterion("ENTITY1_TYPE", Operator.EqualTo, value);
    }

    public IamRelationshipSqlBuilder andEntity1TypeNotEqualTo(String value) {
        return addAndCriterion("ENTITY1_TYPE", Operator.NotEqualTo, value);
    }

    public IamRelationshipSqlBuilder andEntity1TypeGreaterThan(String value) {
        return addAndCriterion("ENTITY1_TYPE", Operator.GreaterThan, value);
    }

    public IamRelationshipSqlBuilder andEntity1TypeGreaterThanOrEqualTo(String value) {
        return addAndCriterion("ENTITY1_TYPE", Operator.GreaterThanOrEqualTo, value);
    }

    public IamRelationshipSqlBuilder andEntity1TypeLessThan(String value) {
        return addAndCriterion("ENTITY1_TYPE", Operator.LessThan, value);
    }

    public IamRelationshipSqlBuilder andEntity1TypeLessThanOrEqualTo(String value) {
        return addAndCriterion("ENTITY1_TYPE", Operator.LessThanOrEqualTo, value);
    }

    public IamRelationshipSqlBuilder andEntity1TypeIsNull() {
        return addAndCriterion("ENTITY1_TYPE", Operator.IsNull, null);
    }

    public IamRelationshipSqlBuilder andEntity1TypeIsNotNull() {
        return addAndCriterion("ENTITY1_TYPE", Operator.IsNotNull, null);
    }

    public IamRelationshipSqlBuilder andEntity1TypeLikeBoth(String value) {
        return addAndCriterion("ENTITY1_TYPE", Operator.Like, likeMark + value + likeMark);
    }

    public IamRelationshipSqlBuilder andEntity1TypeLikeLeft(String value) {
        return addAndCriterion("ENTITY1_TYPE", Operator.Like, likeMark + value);
    }

    public IamRelationshipSqlBuilder andEntity1TypeLikeRigth(String value) {
        return addAndCriterion("ENTITY1_TYPE", Operator.Like, value + likeMark);
    }

    public IamRelationshipSqlBuilder andEntity1TypeNotLikeBoth(String value) {
        return addAndCriterion("ENTITY1_TYPE", Operator.NotLike, likeMark + value + likeMark);
    }

    public IamRelationshipSqlBuilder andEntity1TypeNotLikeLeft(String value) {
        return addAndCriterion("ENTITY1_TYPE", Operator.NotLike, likeMark + value);
    }

    public IamRelationshipSqlBuilder andEntity1TypeNotLikeRigth(String value) {
        return addAndCriterion("ENTITY1_TYPE", Operator.NotLike, value + likeMark);
    }

    public IamRelationshipSqlBuilder orEntity1TypeEqualTo(String value) {
        return addOrCriterion("ENTITY1_TYPE", Operator.EqualTo, value);
    }

    public IamRelationshipSqlBuilder orEntity1TypeNotEqualTo(String value) {
        return addOrCriterion("ENTITY1_TYPE", Operator.NotEqualTo, value);
    }

    public IamRelationshipSqlBuilder orEntity1TypeGreaterThan(String value) {
        return addOrCriterion("ENTITY1_TYPE", Operator.GreaterThan, value);
    }

    public IamRelationshipSqlBuilder orEntity1TypeGreaterThanOrEqualTo(String value) {
        return addOrCriterion("ENTITY1_TYPE", Operator.GreaterThanOrEqualTo, value);
    }

    public IamRelationshipSqlBuilder orEntity1TypeLessThan(String value) {
        return addOrCriterion("ENTITY1_TYPE", Operator.LessThan, value);
    }

    public IamRelationshipSqlBuilder orEntity1TypeLessThanOrEqualTo(String value) {
        return addOrCriterion("ENTITY1_TYPE", Operator.LessThanOrEqualTo, value);
    }

    public IamRelationshipSqlBuilder orEntity1TypeIsNull() {
        return addOrCriterion("ENTITY1_TYPE", Operator.IsNull, null);
    }

    public IamRelationshipSqlBuilder orEntity1TypeIsNotNull() {
        return addOrCriterion("ENTITY1_TYPE", Operator.IsNotNull, null);
    }

    public IamRelationshipSqlBuilder orEntity1TypeLikeBoth(String value) {
        return addOrCriterion("ENTITY1_TYPE", Operator.Like, likeMark + value + likeMark);
    }

    public IamRelationshipSqlBuilder orEntity1TypeLikeLeft(String value) {
        return addOrCriterion("ENTITY1_TYPE", Operator.Like, likeMark + value);
    }

    public IamRelationshipSqlBuilder orEntity1TypeLikeRigth(String value) {
        return addOrCriterion("ENTITY1_TYPE", Operator.Like, value + likeMark);
    }

    public IamRelationshipSqlBuilder orEntity1TypeNotLikeBoth(String value) {
        return addOrCriterion("ENTITY1_TYPE", Operator.NotLike, likeMark + value + likeMark);
    }

    public IamRelationshipSqlBuilder orEntity1TypeNotLikeLeft(String value) {
        return addOrCriterion("ENTITY1_TYPE", Operator.NotLike, likeMark + value);
    }

    public IamRelationshipSqlBuilder orEntity1TypeNotLikeRigth(String value) {
        return addOrCriterion("ENTITY1_TYPE", Operator.NotLike, value + likeMark);
    }

    public IamRelationshipSqlBuilder orderByEntity1Type(boolean isDesc) {
        return addOrderBy("ENTITY1_TYPE", isDesc);
    }

    public IamRelationshipSqlBuilder andEntity1CodeEqualTo(String value) {
        return addAndCriterion("ENTITY1_CODE", Operator.EqualTo, value);
    }

    public IamRelationshipSqlBuilder andEntity1CodeNotEqualTo(String value) {
        return addAndCriterion("ENTITY1_CODE", Operator.NotEqualTo, value);
    }

    public IamRelationshipSqlBuilder andEntity1CodeGreaterThan(String value) {
        return addAndCriterion("ENTITY1_CODE", Operator.GreaterThan, value);
    }

    public IamRelationshipSqlBuilder andEntity1CodeGreaterThanOrEqualTo(String value) {
        return addAndCriterion("ENTITY1_CODE", Operator.GreaterThanOrEqualTo, value);
    }

    public IamRelationshipSqlBuilder andEntity1CodeLessThan(String value) {
        return addAndCriterion("ENTITY1_CODE", Operator.LessThan, value);
    }

    public IamRelationshipSqlBuilder andEntity1CodeLessThanOrEqualTo(String value) {
        return addAndCriterion("ENTITY1_CODE", Operator.LessThanOrEqualTo, value);
    }

    public IamRelationshipSqlBuilder andEntity1CodeIsNull() {
        return addAndCriterion("ENTITY1_CODE", Operator.IsNull, null);
    }

    public IamRelationshipSqlBuilder andEntity1CodeIsNotNull() {
        return addAndCriterion("ENTITY1_CODE", Operator.IsNotNull, null);
    }

    public IamRelationshipSqlBuilder andEntity1CodeLikeBoth(String value) {
        return addAndCriterion("ENTITY1_CODE", Operator.Like, likeMark + value + likeMark);
    }

    public IamRelationshipSqlBuilder andEntity1CodeLikeLeft(String value) {
        return addAndCriterion("ENTITY1_CODE", Operator.Like, likeMark + value);
    }

    public IamRelationshipSqlBuilder andEntity1CodeLikeRigth(String value) {
        return addAndCriterion("ENTITY1_CODE", Operator.Like, value + likeMark);
    }

    public IamRelationshipSqlBuilder andEntity1CodeNotLikeBoth(String value) {
        return addAndCriterion("ENTITY1_CODE", Operator.NotLike, likeMark + value + likeMark);
    }

    public IamRelationshipSqlBuilder andEntity1CodeNotLikeLeft(String value) {
        return addAndCriterion("ENTITY1_CODE", Operator.NotLike, likeMark + value);
    }

    public IamRelationshipSqlBuilder andEntity1CodeNotLikeRigth(String value) {
        return addAndCriterion("ENTITY1_CODE", Operator.NotLike, value + likeMark);
    }

    public IamRelationshipSqlBuilder orEntity1CodeEqualTo(String value) {
        return addOrCriterion("ENTITY1_CODE", Operator.EqualTo, value);
    }

    public IamRelationshipSqlBuilder orEntity1CodeNotEqualTo(String value) {
        return addOrCriterion("ENTITY1_CODE", Operator.NotEqualTo, value);
    }

    public IamRelationshipSqlBuilder orEntity1CodeGreaterThan(String value) {
        return addOrCriterion("ENTITY1_CODE", Operator.GreaterThan, value);
    }

    public IamRelationshipSqlBuilder orEntity1CodeGreaterThanOrEqualTo(String value) {
        return addOrCriterion("ENTITY1_CODE", Operator.GreaterThanOrEqualTo, value);
    }

    public IamRelationshipSqlBuilder orEntity1CodeLessThan(String value) {
        return addOrCriterion("ENTITY1_CODE", Operator.LessThan, value);
    }

    public IamRelationshipSqlBuilder orEntity1CodeLessThanOrEqualTo(String value) {
        return addOrCriterion("ENTITY1_CODE", Operator.LessThanOrEqualTo, value);
    }

    public IamRelationshipSqlBuilder orEntity1CodeIsNull() {
        return addOrCriterion("ENTITY1_CODE", Operator.IsNull, null);
    }

    public IamRelationshipSqlBuilder orEntity1CodeIsNotNull() {
        return addOrCriterion("ENTITY1_CODE", Operator.IsNotNull, null);
    }

    public IamRelationshipSqlBuilder orEntity1CodeLikeBoth(String value) {
        return addOrCriterion("ENTITY1_CODE", Operator.Like, likeMark + value + likeMark);
    }

    public IamRelationshipSqlBuilder orEntity1CodeLikeLeft(String value) {
        return addOrCriterion("ENTITY1_CODE", Operator.Like, likeMark + value);
    }

    public IamRelationshipSqlBuilder orEntity1CodeLikeRigth(String value) {
        return addOrCriterion("ENTITY1_CODE", Operator.Like, value + likeMark);
    }

    public IamRelationshipSqlBuilder orEntity1CodeNotLikeBoth(String value) {
        return addOrCriterion("ENTITY1_CODE", Operator.NotLike, likeMark + value + likeMark);
    }

    public IamRelationshipSqlBuilder orEntity1CodeNotLikeLeft(String value) {
        return addOrCriterion("ENTITY1_CODE", Operator.NotLike, likeMark + value);
    }

    public IamRelationshipSqlBuilder orEntity1CodeNotLikeRigth(String value) {
        return addOrCriterion("ENTITY1_CODE", Operator.NotLike, value + likeMark);
    }

    public IamRelationshipSqlBuilder orderByEntity1Code(boolean isDesc) {
        return addOrderBy("ENTITY1_CODE", isDesc);
    }

    public IamRelationshipSqlBuilder andRelaCodeEqualTo(String value) {
        return addAndCriterion("RELA_CODE", Operator.EqualTo, value);
    }

    public IamRelationshipSqlBuilder andRelaCodeNotEqualTo(String value) {
        return addAndCriterion("RELA_CODE", Operator.NotEqualTo, value);
    }

    public IamRelationshipSqlBuilder andRelaCodeGreaterThan(String value) {
        return addAndCriterion("RELA_CODE", Operator.GreaterThan, value);
    }

    public IamRelationshipSqlBuilder andRelaCodeGreaterThanOrEqualTo(String value) {
        return addAndCriterion("RELA_CODE", Operator.GreaterThanOrEqualTo, value);
    }

    public IamRelationshipSqlBuilder andRelaCodeLessThan(String value) {
        return addAndCriterion("RELA_CODE", Operator.LessThan, value);
    }

    public IamRelationshipSqlBuilder andRelaCodeLessThanOrEqualTo(String value) {
        return addAndCriterion("RELA_CODE", Operator.LessThanOrEqualTo, value);
    }

    public IamRelationshipSqlBuilder andRelaCodeIsNull() {
        return addAndCriterion("RELA_CODE", Operator.IsNull, null);
    }

    public IamRelationshipSqlBuilder andRelaCodeIsNotNull() {
        return addAndCriterion("RELA_CODE", Operator.IsNotNull, null);
    }

    public IamRelationshipSqlBuilder andRelaCodeLikeBoth(String value) {
        return addAndCriterion("RELA_CODE", Operator.Like, likeMark + value + likeMark);
    }

    public IamRelationshipSqlBuilder andRelaCodeLikeLeft(String value) {
        return addAndCriterion("RELA_CODE", Operator.Like, likeMark + value);
    }

    public IamRelationshipSqlBuilder andRelaCodeLikeRigth(String value) {
        return addAndCriterion("RELA_CODE", Operator.Like, value + likeMark);
    }

    public IamRelationshipSqlBuilder andRelaCodeNotLikeBoth(String value) {
        return addAndCriterion("RELA_CODE", Operator.NotLike, likeMark + value + likeMark);
    }

    public IamRelationshipSqlBuilder andRelaCodeNotLikeLeft(String value) {
        return addAndCriterion("RELA_CODE", Operator.NotLike, likeMark + value);
    }

    public IamRelationshipSqlBuilder andRelaCodeNotLikeRigth(String value) {
        return addAndCriterion("RELA_CODE", Operator.NotLike, value + likeMark);
    }

    public IamRelationshipSqlBuilder orRelaCodeEqualTo(String value) {
        return addOrCriterion("RELA_CODE", Operator.EqualTo, value);
    }

    public IamRelationshipSqlBuilder orRelaCodeNotEqualTo(String value) {
        return addOrCriterion("RELA_CODE", Operator.NotEqualTo, value);
    }

    public IamRelationshipSqlBuilder orRelaCodeGreaterThan(String value) {
        return addOrCriterion("RELA_CODE", Operator.GreaterThan, value);
    }

    public IamRelationshipSqlBuilder orRelaCodeGreaterThanOrEqualTo(String value) {
        return addOrCriterion("RELA_CODE", Operator.GreaterThanOrEqualTo, value);
    }

    public IamRelationshipSqlBuilder orRelaCodeLessThan(String value) {
        return addOrCriterion("RELA_CODE", Operator.LessThan, value);
    }

    public IamRelationshipSqlBuilder orRelaCodeLessThanOrEqualTo(String value) {
        return addOrCriterion("RELA_CODE", Operator.LessThanOrEqualTo, value);
    }

    public IamRelationshipSqlBuilder orRelaCodeIsNull() {
        return addOrCriterion("RELA_CODE", Operator.IsNull, null);
    }

    public IamRelationshipSqlBuilder orRelaCodeIsNotNull() {
        return addOrCriterion("RELA_CODE", Operator.IsNotNull, null);
    }

    public IamRelationshipSqlBuilder orRelaCodeLikeBoth(String value) {
        return addOrCriterion("RELA_CODE", Operator.Like, likeMark + value + likeMark);
    }

    public IamRelationshipSqlBuilder orRelaCodeLikeLeft(String value) {
        return addOrCriterion("RELA_CODE", Operator.Like, likeMark + value);
    }

    public IamRelationshipSqlBuilder orRelaCodeLikeRigth(String value) {
        return addOrCriterion("RELA_CODE", Operator.Like, value + likeMark);
    }

    public IamRelationshipSqlBuilder orRelaCodeNotLikeBoth(String value) {
        return addOrCriterion("RELA_CODE", Operator.NotLike, likeMark + value + likeMark);
    }

    public IamRelationshipSqlBuilder orRelaCodeNotLikeLeft(String value) {
        return addOrCriterion("RELA_CODE", Operator.NotLike, likeMark + value);
    }

    public IamRelationshipSqlBuilder orRelaCodeNotLikeRigth(String value) {
        return addOrCriterion("RELA_CODE", Operator.NotLike, value + likeMark);
    }

    public IamRelationshipSqlBuilder orderByRelaCode(boolean isDesc) {
        return addOrderBy("RELA_CODE", isDesc);
    }

    public IamRelationshipSqlBuilder andEntity2TypeEqualTo(String value) {
        return addAndCriterion("ENTITY2_TYPE", Operator.EqualTo, value);
    }

    public IamRelationshipSqlBuilder andEntity2TypeNotEqualTo(String value) {
        return addAndCriterion("ENTITY2_TYPE", Operator.NotEqualTo, value);
    }

    public IamRelationshipSqlBuilder andEntity2TypeGreaterThan(String value) {
        return addAndCriterion("ENTITY2_TYPE", Operator.GreaterThan, value);
    }

    public IamRelationshipSqlBuilder andEntity2TypeGreaterThanOrEqualTo(String value) {
        return addAndCriterion("ENTITY2_TYPE", Operator.GreaterThanOrEqualTo, value);
    }

    public IamRelationshipSqlBuilder andEntity2TypeLessThan(String value) {
        return addAndCriterion("ENTITY2_TYPE", Operator.LessThan, value);
    }

    public IamRelationshipSqlBuilder andEntity2TypeLessThanOrEqualTo(String value) {
        return addAndCriterion("ENTITY2_TYPE", Operator.LessThanOrEqualTo, value);
    }

    public IamRelationshipSqlBuilder andEntity2TypeIsNull() {
        return addAndCriterion("ENTITY2_TYPE", Operator.IsNull, null);
    }

    public IamRelationshipSqlBuilder andEntity2TypeIsNotNull() {
        return addAndCriterion("ENTITY2_TYPE", Operator.IsNotNull, null);
    }

    public IamRelationshipSqlBuilder andEntity2TypeLikeBoth(String value) {
        return addAndCriterion("ENTITY2_TYPE", Operator.Like, likeMark + value + likeMark);
    }

    public IamRelationshipSqlBuilder andEntity2TypeLikeLeft(String value) {
        return addAndCriterion("ENTITY2_TYPE", Operator.Like, likeMark + value);
    }

    public IamRelationshipSqlBuilder andEntity2TypeLikeRigth(String value) {
        return addAndCriterion("ENTITY2_TYPE", Operator.Like, value + likeMark);
    }

    public IamRelationshipSqlBuilder andEntity2TypeNotLikeBoth(String value) {
        return addAndCriterion("ENTITY2_TYPE", Operator.NotLike, likeMark + value + likeMark);
    }

    public IamRelationshipSqlBuilder andEntity2TypeNotLikeLeft(String value) {
        return addAndCriterion("ENTITY2_TYPE", Operator.NotLike, likeMark + value);
    }

    public IamRelationshipSqlBuilder andEntity2TypeNotLikeRigth(String value) {
        return addAndCriterion("ENTITY2_TYPE", Operator.NotLike, value + likeMark);
    }

    public IamRelationshipSqlBuilder orEntity2TypeEqualTo(String value) {
        return addOrCriterion("ENTITY2_TYPE", Operator.EqualTo, value);
    }

    public IamRelationshipSqlBuilder orEntity2TypeNotEqualTo(String value) {
        return addOrCriterion("ENTITY2_TYPE", Operator.NotEqualTo, value);
    }

    public IamRelationshipSqlBuilder orEntity2TypeGreaterThan(String value) {
        return addOrCriterion("ENTITY2_TYPE", Operator.GreaterThan, value);
    }

    public IamRelationshipSqlBuilder orEntity2TypeGreaterThanOrEqualTo(String value) {
        return addOrCriterion("ENTITY2_TYPE", Operator.GreaterThanOrEqualTo, value);
    }

    public IamRelationshipSqlBuilder orEntity2TypeLessThan(String value) {
        return addOrCriterion("ENTITY2_TYPE", Operator.LessThan, value);
    }

    public IamRelationshipSqlBuilder orEntity2TypeLessThanOrEqualTo(String value) {
        return addOrCriterion("ENTITY2_TYPE", Operator.LessThanOrEqualTo, value);
    }

    public IamRelationshipSqlBuilder orEntity2TypeIsNull() {
        return addOrCriterion("ENTITY2_TYPE", Operator.IsNull, null);
    }

    public IamRelationshipSqlBuilder orEntity2TypeIsNotNull() {
        return addOrCriterion("ENTITY2_TYPE", Operator.IsNotNull, null);
    }

    public IamRelationshipSqlBuilder orEntity2TypeLikeBoth(String value) {
        return addOrCriterion("ENTITY2_TYPE", Operator.Like, likeMark + value + likeMark);
    }

    public IamRelationshipSqlBuilder orEntity2TypeLikeLeft(String value) {
        return addOrCriterion("ENTITY2_TYPE", Operator.Like, likeMark + value);
    }

    public IamRelationshipSqlBuilder orEntity2TypeLikeRigth(String value) {
        return addOrCriterion("ENTITY2_TYPE", Operator.Like, value + likeMark);
    }

    public IamRelationshipSqlBuilder orEntity2TypeNotLikeBoth(String value) {
        return addOrCriterion("ENTITY2_TYPE", Operator.NotLike, likeMark + value + likeMark);
    }

    public IamRelationshipSqlBuilder orEntity2TypeNotLikeLeft(String value) {
        return addOrCriterion("ENTITY2_TYPE", Operator.NotLike, likeMark + value);
    }

    public IamRelationshipSqlBuilder orEntity2TypeNotLikeRigth(String value) {
        return addOrCriterion("ENTITY2_TYPE", Operator.NotLike, value + likeMark);
    }

    public IamRelationshipSqlBuilder orderByEntity2Type(boolean isDesc) {
        return addOrderBy("ENTITY2_TYPE", isDesc);
    }

    public IamRelationshipSqlBuilder andEntity2CodeEqualTo(String value) {
        return addAndCriterion("ENTITY2_CODE", Operator.EqualTo, value);
    }

    public IamRelationshipSqlBuilder andEntity2CodeNotEqualTo(String value) {
        return addAndCriterion("ENTITY2_CODE", Operator.NotEqualTo, value);
    }

    public IamRelationshipSqlBuilder andEntity2CodeGreaterThan(String value) {
        return addAndCriterion("ENTITY2_CODE", Operator.GreaterThan, value);
    }

    public IamRelationshipSqlBuilder andEntity2CodeGreaterThanOrEqualTo(String value) {
        return addAndCriterion("ENTITY2_CODE", Operator.GreaterThanOrEqualTo, value);
    }

    public IamRelationshipSqlBuilder andEntity2CodeLessThan(String value) {
        return addAndCriterion("ENTITY2_CODE", Operator.LessThan, value);
    }

    public IamRelationshipSqlBuilder andEntity2CodeLessThanOrEqualTo(String value) {
        return addAndCriterion("ENTITY2_CODE", Operator.LessThanOrEqualTo, value);
    }

    public IamRelationshipSqlBuilder andEntity2CodeIsNull() {
        return addAndCriterion("ENTITY2_CODE", Operator.IsNull, null);
    }

    public IamRelationshipSqlBuilder andEntity2CodeIsNotNull() {
        return addAndCriterion("ENTITY2_CODE", Operator.IsNotNull, null);
    }

    public IamRelationshipSqlBuilder andEntity2CodeLikeBoth(String value) {
        return addAndCriterion("ENTITY2_CODE", Operator.Like, likeMark + value + likeMark);
    }

    public IamRelationshipSqlBuilder andEntity2CodeLikeLeft(String value) {
        return addAndCriterion("ENTITY2_CODE", Operator.Like, likeMark + value);
    }

    public IamRelationshipSqlBuilder andEntity2CodeLikeRigth(String value) {
        return addAndCriterion("ENTITY2_CODE", Operator.Like, value + likeMark);
    }

    public IamRelationshipSqlBuilder andEntity2CodeNotLikeBoth(String value) {
        return addAndCriterion("ENTITY2_CODE", Operator.NotLike, likeMark + value + likeMark);
    }

    public IamRelationshipSqlBuilder andEntity2CodeNotLikeLeft(String value) {
        return addAndCriterion("ENTITY2_CODE", Operator.NotLike, likeMark + value);
    }

    public IamRelationshipSqlBuilder andEntity2CodeNotLikeRigth(String value) {
        return addAndCriterion("ENTITY2_CODE", Operator.NotLike, value + likeMark);
    }

    public IamRelationshipSqlBuilder orEntity2CodeEqualTo(String value) {
        return addOrCriterion("ENTITY2_CODE", Operator.EqualTo, value);
    }

    public IamRelationshipSqlBuilder orEntity2CodeNotEqualTo(String value) {
        return addOrCriterion("ENTITY2_CODE", Operator.NotEqualTo, value);
    }

    public IamRelationshipSqlBuilder orEntity2CodeGreaterThan(String value) {
        return addOrCriterion("ENTITY2_CODE", Operator.GreaterThan, value);
    }

    public IamRelationshipSqlBuilder orEntity2CodeGreaterThanOrEqualTo(String value) {
        return addOrCriterion("ENTITY2_CODE", Operator.GreaterThanOrEqualTo, value);
    }

    public IamRelationshipSqlBuilder orEntity2CodeLessThan(String value) {
        return addOrCriterion("ENTITY2_CODE", Operator.LessThan, value);
    }

    public IamRelationshipSqlBuilder orEntity2CodeLessThanOrEqualTo(String value) {
        return addOrCriterion("ENTITY2_CODE", Operator.LessThanOrEqualTo, value);
    }

    public IamRelationshipSqlBuilder orEntity2CodeIsNull() {
        return addOrCriterion("ENTITY2_CODE", Operator.IsNull, null);
    }

    public IamRelationshipSqlBuilder orEntity2CodeIsNotNull() {
        return addOrCriterion("ENTITY2_CODE", Operator.IsNotNull, null);
    }

    public IamRelationshipSqlBuilder orEntity2CodeLikeBoth(String value) {
        return addOrCriterion("ENTITY2_CODE", Operator.Like, likeMark + value + likeMark);
    }

    public IamRelationshipSqlBuilder orEntity2CodeLikeLeft(String value) {
        return addOrCriterion("ENTITY2_CODE", Operator.Like, likeMark + value);
    }

    public IamRelationshipSqlBuilder orEntity2CodeLikeRigth(String value) {
        return addOrCriterion("ENTITY2_CODE", Operator.Like, value + likeMark);
    }

    public IamRelationshipSqlBuilder orEntity2CodeNotLikeBoth(String value) {
        return addOrCriterion("ENTITY2_CODE", Operator.NotLike, likeMark + value + likeMark);
    }

    public IamRelationshipSqlBuilder orEntity2CodeNotLikeLeft(String value) {
        return addOrCriterion("ENTITY2_CODE", Operator.NotLike, likeMark + value);
    }

    public IamRelationshipSqlBuilder orEntity2CodeNotLikeRigth(String value) {
        return addOrCriterion("ENTITY2_CODE", Operator.NotLike, value + likeMark);
    }

    public IamRelationshipSqlBuilder orderByEntity2Code(boolean isDesc) {
        return addOrderBy("ENTITY2_CODE", isDesc);
    }
}